<?php if ($this->model->isValid) : ?>
<p>
	Logged in as: <?php echo $this->model->identity; ?>
</p>

<?php else : ?>
<fieldset>
	<legend>Login</legend>

	<form action="<?php echo $this->action('process', $this->controller); ?>" method="post">
		<div>
			<label for="pipes__auth__credential">OpenID</label>
			<input class="openid" type="text" size="10" alt="OpenID" name="identity_url" />
		</div>

		<div>
			<input type="submit" value="Log in" />
		</div>
	</form>
</fieldset>
<?php endif; ?>
